package com.qiye.livevideo.service.impl;
import com.qiye.livevideo.dao.AliCloudOssInfoDao;
import com.qiye.livevideo.model.AliCloudOssInfo;
import com.qiye.livevideo.service.AliCloudOssInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;


/**
 *阿里云oss相关配置信息 serverImpl
 *  Created on 2019/4/30.
 *  @author meishijun
 */
@Service
@Transactional
public class AliCloudOssInfoServiceImpl   implements AliCloudOssInfoService {


	/**
	 * 注入dao
	 */
	@Resource
	private AliCloudOssInfoDao aliCloudOssInfoDao;
	/**
	 * 初始化
	 */
	@Override
	public AliCloudOssInfoDao initDao(){
		return aliCloudOssInfoDao;
	}

	/**
	 * 根据阿里云keyId获取阿里云oss配置信息
	 * @param accessKeyId
	 * @return
	 */
	@Override
	public AliCloudOssInfo selectByaccessKeyId(String accessKeyId) {
		return aliCloudOssInfoDao.selectByaccessKeyId(accessKeyId);
	}


}
